
<template>
  <div v-if="policy" v-html="policy.PPC_Content" class="ql-editor"></div>
  <div v-else>找不到该协议</div>
</template>
<script>
import { getPrivacyPolicy } from '@/api/common/privacyPolicy'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
export default {
  components: {},
  data: function () {
    return {
      app: null,
      policy: null,
    }
  },
  methods: {
    getPrivacyPolicy() {
      if (this.app)
        getPrivacyPolicy(this.app).then(({ data }) => (this.policy = data))
    },
  },
  created: function () {
    this.app = this.$route.query.app
    this.getPrivacyPolicy()
  },
}
</script>
<style scoped>
</style>
